package user;

import book.BookList;
import operation.Operation;

public abstract class User {
    private String userName;
    protected Operation[] operations = new Operation[10];
    public User(String userName) {
        this.userName = userName;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList list) {
        operations[choice].work(list);
    }
}
